public class Express {
    private String expressNumber;
    private double goodsWeight;
    public String getExpressNumber(){
        return expressNumber;
    }
    public void setExpressNumber(String number){
        this.expressNumber=expressNumber;

    }

    public double getGoodsWeight() {
        return goodsWeight;
    }

    public void setGoodsWeight(double goodsWeight) {
        this.goodsWeight = goodsWeight;
    }
    public Express(String expressNumber,double goodsWeight){
        this.expressNumber=expressNumber;
        this.goodsWeight=goodsWeight;
    }
    public void sendBefore(){
        System.out.println("------订单开始处理，厂库准备出货-------");
        System.out.println("货物重量："+this.getGoodsWeight()+"kg");
        System.out.println("货车检验完毕");
        System.out.println("货物装车完毕");
        System.out.println("运货人已通知");
        System.out.println("快递单号："+this.getExpressNumber());
    }
    public void sending(Truck t){
        System.out.println(t.getTransporter()+"正在驾驶编号为"+t.getNumber()+"的"+t.getModel()+"运输货物");
    }
}
